package com.sasis.model;
// Generated 2007-5-22 14:58:58 by Hibernate Tools 3.1.0.beta4

import java.math.BigDecimal;
import java.sql.Date;


/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="FLIGHT_ADJUST_SUPERFLUITY"
 *     
 */

public class FlightAdjustSuperfluity extends com.sasis.model.BaseObject implements java.io.Serializable {


    // Fields    

    private Integer id;
    private Integer flightInfoId;
    private Integer passengerInfoId;
    private BigDecimal applyMoney;
    private Date applyTime;
    private String suggestion;
    private Date approveDate;
    private String memo;
    private Integer operator;
    private String name;
    private String etNumber;
    private String calbinClass;
    private Date operatDate;


    // Constructors

    /** default constructor */
    public FlightAdjustSuperfluity() {
    }

	/** minimal constructor */
    public FlightAdjustSuperfluity(Integer flightInfoId) {
        this.flightInfoId = flightInfoId;
    }
    
    /** full constructor */
    public FlightAdjustSuperfluity(Integer flightInfoId, Integer passengerInfoId, BigDecimal applyMoney, Date applyTime, String suggestion, Date approveDate, String memo, Integer operator, Date operatDate) {
        this.flightInfoId = flightInfoId;
        this.passengerInfoId = passengerInfoId;
        this.applyMoney = applyMoney;
        this.applyTime = applyTime;
        this.suggestion = suggestion;
        this.approveDate = approveDate;
        this.memo = memo;
        this.operator = operator;
        this.operatDate = operatDate;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="ID"
     *         
     */

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    /**       
     *      *            @hibernate.property
     *             column="FLIGHT_INFO_ID"
     *             length="22"
     *             not-null="true"
     *         
     */

    public Integer getFlightInfoId() {
        return this.flightInfoId;
    }
    
    public void setFlightInfoId(Integer flightInfoId) {
        this.flightInfoId = flightInfoId;
    }
    /**       
     *      *            @hibernate.property
     *             column="PASSENGER_INFO_ID"
     *             length="22"
     *         
     */

    public Integer getPassengerInfoId() {
        return this.passengerInfoId;
    }
    
    public void setPassengerInfoId(Integer passengerInfoId) {
        this.passengerInfoId = passengerInfoId;
    }
    /**       
     *      *            @hibernate.property
     *             column="APPLY_MONEY"
     *             length="18"
     *         
     */

    public BigDecimal getApplyMoney() {
        return this.applyMoney;
    }
    
    public void setApplyMoney(BigDecimal applyMoney) {
        this.applyMoney = applyMoney;
    }
    /**       
     *      *            @hibernate.property
     *             column="APPLY_TIME"
     *             length="7"
     *         
     */

    public Date getApplyTime() {
        return this.applyTime;
    }
    
    public void setApplyTime(Date applyTime) {
        this.applyTime = applyTime;
    }
    /**       
     *      *            @hibernate.property
     *             column="SUGGESTION"
     *             length="1024"
     *         
     */

    public String getSuggestion() {
        return this.suggestion;
    }
    
    public void setSuggestion(String suggestion) {
        this.suggestion = suggestion;
    }
    /**       
     *      *            @hibernate.property
     *             column="APPROVE_DATE"
     *             length="7"
     *         
     */

    public Date getApproveDate() {
        return this.approveDate;
    }
    
    public void setApproveDate(Date approveDate) {
        this.approveDate = approveDate;
    }
    /**       
     *      *            @hibernate.property
     *             column="MEMO"
     *             length="1024"
     *         
     */

    public String getMemo() {
        return this.memo;
    }
    
    public void setMemo(String memo) {
        this.memo = memo;
    }
    /**       
     *      *            @hibernate.property
     *             column="OPERATOR"
     *             length="22"
     *         
     */

    public Integer getOperator() {
        return this.operator;
    }
    
    public void setOperator(Integer operator) {
        this.operator = operator;
    }
    /**       
     *      *            @hibernate.property
     *             column="OPERAT_DATE"
     *             length="7"
     *         
     */

    public Date getOperatDate() {
        return this.operatDate;
    }
    
    public void setOperatDate(Date operatDate) {
        this.operatDate = operatDate;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("flightInfoId").append("='").append(getFlightInfoId()).append("' ");			
      buffer.append("passengerInfoId").append("='").append(getPassengerInfoId()).append("' ");			
      buffer.append("applyMoney").append("='").append(getApplyMoney()).append("' ");			
      buffer.append("applyTime").append("='").append(getApplyTime()).append("' ");			
      buffer.append("suggestion").append("='").append(getSuggestion()).append("' ");			
      buffer.append("approveDate").append("='").append(getApproveDate()).append("' ");			
      buffer.append("memo").append("='").append(getMemo()).append("' ");			
      buffer.append("operator").append("='").append(getOperator()).append("' ");			
      buffer.append("operatDate").append("='").append(getOperatDate()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof FlightAdjustSuperfluity) ) return false;
		 FlightAdjustSuperfluity castOther = ( FlightAdjustSuperfluity ) other; 
         
		 return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )
 && ( (this.getFlightInfoId()==castOther.getFlightInfoId()) || ( this.getFlightInfoId()!=null && castOther.getFlightInfoId()!=null && this.getFlightInfoId().equals(castOther.getFlightInfoId()) ) )
 && ( (this.getPassengerInfoId()==castOther.getPassengerInfoId()) || ( this.getPassengerInfoId()!=null && castOther.getPassengerInfoId()!=null && this.getPassengerInfoId().equals(castOther.getPassengerInfoId()) ) )
 && ( (this.getApplyMoney()==castOther.getApplyMoney()) || ( this.getApplyMoney()!=null && castOther.getApplyMoney()!=null && this.getApplyMoney().equals(castOther.getApplyMoney()) ) )
 && ( (this.getApplyTime()==castOther.getApplyTime()) || ( this.getApplyTime()!=null && castOther.getApplyTime()!=null && this.getApplyTime().equals(castOther.getApplyTime()) ) )
 && ( (this.getSuggestion()==castOther.getSuggestion()) || ( this.getSuggestion()!=null && castOther.getSuggestion()!=null && this.getSuggestion().equals(castOther.getSuggestion()) ) )
 && ( (this.getApproveDate()==castOther.getApproveDate()) || ( this.getApproveDate()!=null && castOther.getApproveDate()!=null && this.getApproveDate().equals(castOther.getApproveDate()) ) )
 && ( (this.getMemo()==castOther.getMemo()) || ( this.getMemo()!=null && castOther.getMemo()!=null && this.getMemo().equals(castOther.getMemo()) ) )
 && ( (this.getOperator()==castOther.getOperator()) || ( this.getOperator()!=null && castOther.getOperator()!=null && this.getOperator().equals(castOther.getOperator()) ) )
 && ( (this.getOperatDate()==castOther.getOperatDate()) || ( this.getOperatDate()!=null && castOther.getOperatDate()!=null && this.getOperatDate().equals(castOther.getOperatDate()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );
         result = 37 * result + ( getFlightInfoId() == null ? 0 : this.getFlightInfoId().hashCode() );
         result = 37 * result + ( getPassengerInfoId() == null ? 0 : this.getPassengerInfoId().hashCode() );
         result = 37 * result + ( getApplyMoney() == null ? 0 : this.getApplyMoney().hashCode() );
         result = 37 * result + ( getApplyTime() == null ? 0 : this.getApplyTime().hashCode() );
         result = 37 * result + ( getSuggestion() == null ? 0 : this.getSuggestion().hashCode() );
         result = 37 * result + ( getApproveDate() == null ? 0 : this.getApproveDate().hashCode() );
         result = 37 * result + ( getMemo() == null ? 0 : this.getMemo().hashCode() );
         result = 37 * result + ( getOperator() == null ? 0 : this.getOperator().hashCode() );
         result = 37 * result + ( getOperatDate() == null ? 0 : this.getOperatDate().hashCode() );
         return result;
   }

public String getCalbinClass() {
	return calbinClass;
}

public void setCalbinClass(String calbinClass) {
	this.calbinClass = calbinClass;
}

public String getEtNumber() {
	return etNumber;
}

public void setEtNumber(String etNumber) {
	this.etNumber = etNumber;
}

public String getName() {
	return name;
}

public void setName(String name) {
	this.name = name;
}   





}
